<?
$rightCol = 1;
include('includes/appInit.php');

if ($_POST['send'] == 1) {
	if (empty($_POST['name']) && empty($_POST['email']) && empty($_POST['message'])) {
		$sent = 0;
	} else {	
		/*
		 * Try to send message to Swindells
		 */
		if (!empty($_POST['name'])) {
			$name = $_POST['name'].'!';
		}
		$mail = new Emails();
		$sent = $mail->sendContactFormEmail();
	}	
}

include('includes/header.php');
?>
	<div id="subPage">
		<div class="leftCol">		
			<div id="subPageContent" class="flex">
				<h1><?=$translate->_('Contacts'); ?></h1>
				
				<div style="float: left; width: 48%;">
					<p>
					<b><?=$translate->_('Voice'); ?>:</b> 503-215-2429<br />
					<b><?=$translate->_('Toll Free'); ?>:</b> 800-833-8899 ext. 52429<br />
					<b><?=$translate->_('Fax'); ?>:</b> 503-215-2478<br />
					<a href="mailto:<?=MASTER_MAIL; ?>"><?=MASTER_MAIL; ?></a></p>
				</div>
				<div style="float: left; width: 48%;">
					<p><br />830 NE 47th <? echo $translate->_('Avenue'); ?><br />
					Portland, OR 97213<br />
					<a href="http://www.providence.org/ProvidenceMaps/DrivingDirections.aspx?street=830+NE+47th+Avenue&city=Portland&state=OR&zip=97213" target="_blank" title="View map" >View Map</a></p>
				</div>
				<div style="clear: left;"></div>
				
				<h2>Contact Form</h2>
				<? if ($_POST['send'] == 1 && $sent == 1) { ?>
				<p><b><?=$name; ?> Thank you for contacting us.</b><br />Someone from our staff will address
				your question or comment shortly.</p>
				<? } else { ?>
				<p>Use the form below to send us your comments or questions. Our staff will
				follow up with you at their earliest convenience.</p> 
				<? } ?>
				<form action="<?=$_SERVER['PHP_SELF']; ?>" method="POST">
				<input type="hidden" name="send" id="send" value="1" />
					<p>
					<label><?=$translate->_('Your name'); ?></label>
					<input type="text" name="name" id="name" style="width: 400px;" />
					</p>
					
					<p>
					<label><?=$translate->_('Email address'); ?></label>
					<input type="text" name="email" id="email" style="width: 400px;" />
					</p>
					
					<p>
					<label><?=$translate->_('Subject of your message'); ?></label>
					<select name="subject" id="subject" style="width: 400px;">
					<option value="select"><?=$translate->_('Select'); ?>...</option>
					<option value="Lending library">Lending library</option>
					<option value="Local resource search">Local resource search</option>
					<option value="My Child's Life Care Notebook and Organizer">My Child's Life Care Notebook and Organizer</option>
					<option value="Parenting question">Parenting question</option>
					<option value="School challenge">School challenge</option>
					<option value="">Problem with website</option>
					</select>
					</p>
					
					<p>
					<label><?=$translate->_('Type your message'); ?></label>
					<textarea name="message" id="message" style="width: 400px; height: 100px;"></textarea>
					</p>
					
					<input type="submit" value="<?=$translate->_('Send'); ?>" class="buttonSendMessage" title="<? echo $translate->_('Send'); ?>" />
	
					
				</form>
				
				<h2>Swindells Centers in rural Oregon</h2>
				<p>
				We are delighted to announce the opening of four Swindells Center locations 
				in rural Oregon -- where, as always, information and services are provided 
				free of charge to family and friends of children with disabilities.</p>
				
				<ul style="margin-left: 20px;" class="grayUL">
					<li>
						Swindells Center at Providence Medford Medical Center<br />
						840 Royal Avenue, Medford, Oregon 97504<br />
						541-732-5958 or toll free at 877-541-0588<br />
					</li>
					<li>
						Swindells Center at Providence Hood River Memorial Hospital<br />
						1151 May Street, Hood River, OR 97031<br />
						541-387-8920 or toll free at 800-955-3911
					</li>
					<li>
						Swindells Center of Central Oregon<br />
						412 SW 8th Street, Redmond, Oregon 97756<br />
						541-526-1448
					</li>
					<li>
						Swindells Center on the Coast<br />
						321 SE 3rd Street, Toledo, OR 97391<br />
						541-336-2851
					</li>
				</ul>
				<br />
				<p>Please call for an appointment or email us <a href=""><?=MASTER_MAIL; ?></a>.</p>
				
				
			</div>
		</div>
		<div class="rightCol noPrint">
			<div class="rightColInner flex" style="height: 500px;">
				<? include('includes/rightColumn.php'); ?>
			</div>
		</div>
		<div style="clear: both;"></div>
	</div>	
<?
include('includes/footer.php');
?>